<?php
session_start();

require_once("../class/Tool.php");

if(isset($_POST["account"]) && isset($_POST["password"]))
{
	if($_POST["account"] == "church" && $_POST["password"] == "macau") 
	{
		$_SESSION["auth_admin"] = "chruch";
		header("Location: news_admin.php");
	}
}

$post_data = array('return_message' => 'Account or Password Invalid!');
Tool::redirect_post("login.php", $post_data);

?>